<?php

/* html/home/jiangping.tpl.html */
class __TwigTemplate_462607d1330d73d867a978f464fb8c19f626ad3055955124402281e9b35881af extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = array(
        );
    }

    protected function doDisplay(array $context, array $blocks = array())
    {
        // line 1
        echo "<!DOCTYPE>
<html>
\t<head>
\t\t<meta charset='ust-8'>
\t\t<meta name=\"viewport\" content=\"width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0\">
\t\t<style>
\t\t*{
\t\t\tpadding:0;
\t\t\tmargin:0;
\t\t}
\t\t\t.head{
\t\t\t\twidth:100%;
\t\t\t}
\t\t\t.head img{
\t\t\t\twidth:100%;
\t\t\t}
\t\t\t.content{
\t\t\t\tmargin-left:10%;
\t\t\t}
\t\t\t.jiang_list{
\t\t\t\theight:4rem;
\t\t\t\tline-height:4rem;
\t\t\t\tmargin-top:1rem;
\t\t\t\tborder:1px solid #bbb;
\t\t\t\tborder-radius:.5rem;
\t\t\t\twidth:80%;
\t\t\t\tpadding-left:.5rem;
\t\t\t}
\t\t\t.tab{
\t\t\twidth:100%;
\t\t\tdisplay:flex;
\t\t}
\t\t.currentShow{
\t\t\tborder-bottom:1px solid #f9bc4f;
\t\t}
\t\t.shuoming{
\t\t\ttext-align:center;
\t\t\twidth:50%;
\t\t\theight:3rem;
\t\t\tline-height:3rem;
\t\t\tcursor:pointer;
\t\t}
\t\t.jiangpin{
\t\t\ttext-align:center;
\t\t\twidth:50%;
\t\t\theight:3rem;
\t\t\tline-height:3rem;
\t\t\tcursor:pointer;
\t\t}
\t\t.lingqu{
\t\t\t float:right;width:30%;text-align:center;background-color:#70e9df;
\t\t}
\t\t.chakan{
\t\t\t float:right;width:30%;text-align:center;background-color:#96d196;
\t\t}
\t\t.yilingqu{
\t\t\t float:right;width:30%;text-align:center;background-color:#bbb;
\t\t}
\t\t</style>
\t\t<link rel=\"stylesheet\" href=\"/static/layer-v3.1.1/layer/mobile/need/layer.css\">
\t</head>
\t<body>
\t<div class='tab'>
\t\t<div class='shuoming' onclick='shuoming()'>活动说明</div>
\t\t<div class='jiangpin currentShow'>我的奖品</div>
\t</div>
\t\t<div class='head'>
\t\t\t<img src='/static/home/img/jiangpin.jpg'>
\t\t</div>
\t\t<div class='content'>
\t\t\t ";
        // line 71
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["jiangpin"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["val"]) {
            // line 72
            echo "\t\t\t<div class='jiang_list'>
\t\t\t\t";
            // line 73
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->getSourceContext(), twig_get_attribute($this->env, $this->getSourceContext(), $context["val"], "name", array()), "name", array()), "html", null, true);
            echo " 
\t\t\t\t";
            // line 74
            if ((twig_get_attribute($this->env, $this->getSourceContext(), $context["val"], "is_get", array()) == 1)) {
                // line 75
                echo "\t\t\t\t\t<span class='yilingqu'>已领取</span>
\t\t\t\t";
            } else {
                // line 77
                echo "\t\t\t\t\t";
                if ((twig_get_attribute($this->env, $this->getSourceContext(), twig_get_attribute($this->env, $this->getSourceContext(), $context["val"], "name", array()), "type", array()) == "phone")) {
                    // line 78
                    echo "\t\t\t\t\t\t<span class='lingqu' onclick='lingqu(";
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->getSourceContext(), $context["val"], "id", array()), "html", null, true);
                    echo ",\"";
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->getSourceContext(), twig_get_attribute($this->env, $this->getSourceContext(), $context["val"], "name", array()), "type", array()), "html", null, true);
                    echo "\")'>领取</span>
\t\t\t\t\t";
                } else {
                    // line 80
                    echo "\t\t\t\t\t\t<span class='chakan' onclick='lingqu(";
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->getSourceContext(), $context["val"], "id", array()), "html", null, true);
                    echo ",\"";
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->getSourceContext(), twig_get_attribute($this->env, $this->getSourceContext(), $context["val"], "name", array()), "type", array()), "html", null, true);
                    echo "\")'>查看</span>
\t\t\t\t\t";
                }
                // line 82
                echo "\t\t\t\t";
            }
            // line 83
            echo "\t\t\t</div>\t
\t\t\t";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['val'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 84
        echo "\t
\t\t</div>
\t\t<script src='/static/layer-v3.1.1/layer/mobile/layer.js'></script>
\t\t<script>
\t\t\tfunction shuoming(){
\t\t\t\tif( localStorage.getItem(\"userSelect\") == 2 ){
\t\t\t\t\t//联通用户
\t\t\t\t\twindow.location.href = '/home/jinlang2.html';
\t\t\t\t\treturn;
\t\t\t\t}
\t\t\t\twindow.location.href = '/home/jinlang.html';
\t\t\t}
\t\t\t
\t\t\tfunction lingqu( uid , type){
\t\t\t\tif( type == 'link' ){
\t\t\t\t\tlayer.open({
\t\t\t\t\t\tcontent: '链接'
\t\t\t\t\t\t,btn: '我知道了'
\t\t\t\t\t});
\t\t\t\t}else if( type == 'phone' ){
\t\t\t\t\twindow.location.href = '/home/lingqu.html?id=' + uid;
\t\t\t\t}else{
\t\t\t\t\tlayer.open({
\t\t\t\t\t\tcontent: '领取错误，请刷新页面重试！'
\t\t\t\t\t\t,btn: '我知道了'
\t\t\t\t\t});
\t\t\t\t}
\t\t\t}
\t\t
\t\t</script>
\t</body>
</html>";
    }

    public function getTemplateName()
    {
        return "html/home/jiangping.tpl.html";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  137 => 84,  130 => 83,  127 => 82,  119 => 80,  111 => 78,  108 => 77,  104 => 75,  102 => 74,  98 => 73,  95 => 72,  91 => 71,  19 => 1,);
    }

    public function getSourceContext()
    {
        return new Twig_Source("<!DOCTYPE>
<html>
\t<head>
\t\t<meta charset='ust-8'>
\t\t<meta name=\"viewport\" content=\"width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0\">
\t\t<style>
\t\t*{
\t\t\tpadding:0;
\t\t\tmargin:0;
\t\t}
\t\t\t.head{
\t\t\t\twidth:100%;
\t\t\t}
\t\t\t.head img{
\t\t\t\twidth:100%;
\t\t\t}
\t\t\t.content{
\t\t\t\tmargin-left:10%;
\t\t\t}
\t\t\t.jiang_list{
\t\t\t\theight:4rem;
\t\t\t\tline-height:4rem;
\t\t\t\tmargin-top:1rem;
\t\t\t\tborder:1px solid #bbb;
\t\t\t\tborder-radius:.5rem;
\t\t\t\twidth:80%;
\t\t\t\tpadding-left:.5rem;
\t\t\t}
\t\t\t.tab{
\t\t\twidth:100%;
\t\t\tdisplay:flex;
\t\t}
\t\t.currentShow{
\t\t\tborder-bottom:1px solid #f9bc4f;
\t\t}
\t\t.shuoming{
\t\t\ttext-align:center;
\t\t\twidth:50%;
\t\t\theight:3rem;
\t\t\tline-height:3rem;
\t\t\tcursor:pointer;
\t\t}
\t\t.jiangpin{
\t\t\ttext-align:center;
\t\t\twidth:50%;
\t\t\theight:3rem;
\t\t\tline-height:3rem;
\t\t\tcursor:pointer;
\t\t}
\t\t.lingqu{
\t\t\t float:right;width:30%;text-align:center;background-color:#70e9df;
\t\t}
\t\t.chakan{
\t\t\t float:right;width:30%;text-align:center;background-color:#96d196;
\t\t}
\t\t.yilingqu{
\t\t\t float:right;width:30%;text-align:center;background-color:#bbb;
\t\t}
\t\t</style>
\t\t<link rel=\"stylesheet\" href=\"/static/layer-v3.1.1/layer/mobile/need/layer.css\">
\t</head>
\t<body>
\t<div class='tab'>
\t\t<div class='shuoming' onclick='shuoming()'>活动说明</div>
\t\t<div class='jiangpin currentShow'>我的奖品</div>
\t</div>
\t\t<div class='head'>
\t\t\t<img src='/static/home/img/jiangpin.jpg'>
\t\t</div>
\t\t<div class='content'>
\t\t\t {% for  val in  jiangpin %}
\t\t\t<div class='jiang_list'>
\t\t\t\t{{val.name.name}} 
\t\t\t\t{% if val.is_get == 1 %}
\t\t\t\t\t<span class='yilingqu'>已领取</span>
\t\t\t\t{% else %}
\t\t\t\t\t{% if val.name.type == 'phone' %}
\t\t\t\t\t\t<span class='lingqu' onclick='lingqu({{val.id}},\"{{val.name.type}}\")'>领取</span>
\t\t\t\t\t{% else %}
\t\t\t\t\t\t<span class='chakan' onclick='lingqu({{val.id}},\"{{val.name.type}}\")'>查看</span>
\t\t\t\t\t{%  endif %}
\t\t\t\t{%  endif %}
\t\t\t</div>\t
\t\t\t{% endfor %}\t
\t\t</div>
\t\t<script src='/static/layer-v3.1.1/layer/mobile/layer.js'></script>
\t\t<script>
\t\t\tfunction shuoming(){
\t\t\t\tif( localStorage.getItem(\"userSelect\") == 2 ){
\t\t\t\t\t//联通用户
\t\t\t\t\twindow.location.href = '/home/jinlang2.html';
\t\t\t\t\treturn;
\t\t\t\t}
\t\t\t\twindow.location.href = '/home/jinlang.html';
\t\t\t}
\t\t\t
\t\t\tfunction lingqu( uid , type){
\t\t\t\tif( type == 'link' ){
\t\t\t\t\tlayer.open({
\t\t\t\t\t\tcontent: '链接'
\t\t\t\t\t\t,btn: '我知道了'
\t\t\t\t\t});
\t\t\t\t}else if( type == 'phone' ){
\t\t\t\t\twindow.location.href = '/home/lingqu.html?id=' + uid;
\t\t\t\t}else{
\t\t\t\t\tlayer.open({
\t\t\t\t\t\tcontent: '领取错误，请刷新页面重试！'
\t\t\t\t\t\t,btn: '我知道了'
\t\t\t\t\t});
\t\t\t\t}
\t\t\t}
\t\t
\t\t</script>
\t</body>
</html>", "html/home/jiangping.tpl.html", "D:\\soft\\phpstudy\\WWW\\liantongh5\\app\\views\\tpl\\html\\home\\jiangping.tpl.html");
    }
}
